home *** CD-ROM | disk | FTP | other *** search
/ Champak 138 / Volume 138 Aug 19 2011 - Damaged.iso / Games / juicy_lucy.swf / scripts / frame_3 / PlaceObject2_254_1117 / CLIPACTIONRECORD onClipEvent(enterFrame).as
Text File  |  2011-08-19  |  412b  |  20 lines

  1. onClipEvent(enterFrame){
  2.    if(!_root.hold)
  3.    {
  4.       if(Key.isDown(37) && this._x > 200)
  5.       {
  6.          this._x -= _root.speed * 2 - 5;
  7.          this.gotoAndStop("left");
  8.       }
  9.       else if(Key.isDown(39) && this._x < 600)
  10.       {
  11.          this._x += _root.speed * 2 - 5;
  12.          this.gotoAndStop("right");
  13.       }
  14.       else
  15.       {
  16.          this.gotoAndStop("still");
  17.       }
  18.    }
  19. }
  20.